#ifndef CAN_CONFIG_H__
#define CAN_CONFIG_H__

#include "stm32f4xx_hal.h"
#include "stm32f4xx_hal_can.h"
#include "basetype.h"
#define CMD_CAN CAN1
#define MC_CAN CAN2

typedef enum
{
    CAN1_INDEX = 0,
    CAN2_INDEX,
    CAN_TOTAL_NUM,
} canList_e;

extern CAN_HandleTypeDef hcanx[CAN_TOTAL_NUM];

void canxInit(uint8 port, uint32 baudrate);

#endif
